package com.moshang.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moshang.blog.entity.SysRole;

import java.util.List;


/**
 * 
 *
 * @author moshang
 * @email 597575122@qq.com
 * @date 2018-09-21 14:45:09
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 根据用户id查询角色
     * @param id
     * @return
     */

    List<SysRole> selectRoleByUserId(Integer id);

    int getRoleNameCount(String roleName);

    void updateRole(SysRole role,Integer[] menus);

    void saveRole(SysRole role,Integer[] menus);

    void deleteRole(SysRole role);

    List<SysRole> selectAll();

    String showAll(SysRole role);
}

